package crazy.tree;

import java.util.List;

public class TreeChildTest
{
	public static void main(String[] args)
	{
		TreeChild<String> tp = new TreeChild<String>("root");
		TreeChild.Node root = tp.root();
		System.out.println(root);
		
		tp.addNode("node1", root);
		tp.addNode("node2", root);
		tp.addNode("node3", root);
		System.out.println(root);
		System.out.println(tp.deep());
		
		List<TreeChild.Node<String>> nodes = tp.children(root);
		System.out.println(nodes.get(0));
		
		tp.addNode("node4", nodes.get(0));
		System.out.println(nodes.get(0));
		System.out.println(tp.deep());
	}
}
